package com.itheima.charest;

import java.io.*;

public class CharStreamDemo06 {
    public static void main(String[] args) throws IOException {
        //BRMethod();
        //return;
        BufferedWriter bw=new BufferedWriter(new FileWriter("ChaStream\\b.txt"));
        bw.write("加油");
        bw.newLine();
        bw.write("热巴");
        bw.close();
    }

    private static void BRMethod() throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("ChaStream\\ab.txt"));
        String line;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();
    }
}
